﻿using System;
using Devv.Core.Utils;

namespace BikeBouncer.BusinessLayer
{
	public class Settings
	{
		#region General properties

		public static String BaseDomain
		{
			get
			{
				return ConfigUtil.GetConfig("BikeBouncer.BaseDomain");
			}
		}

		public static String DefaultCity
		{
			get
			{
				return ConfigUtil.GetConfig("BikeBouncer.DefaultCity");
			}
		}

		public static String DefaultCountry
		{
			get
			{
				return ConfigUtil.GetConfig("BikeBouncer.DefaultCountry");
			}
		}

		public static String ExifTitle
		{
			get
			{
				return ConfigUtil.GetConfig("BikeBouncer.Exif.Title");
			}
		}

		public static String ExifCopyright
		{
			get
			{
				return ConfigUtil.GetConfig("BikeBouncer.Exif.Copyright");
			}
		}

		#endregion

		#region Local path properties

        public static String BasePath { get; set; }
		public static String DataPath { get; set; }

		public static String ItemPicturesPath
		{
			get
			{
				return DataPath + "Pictures\\Items\\";
			}
		}

		public static String ItemBarcodesPath
		{
			get
			{
				return DataPath + "Barcodes\\";
			}
		}

		#endregion

		#region Web path properties

		public static String ItemPicturesWebPath
		{
			get
			{
				return "/Data/Pictures/Items/";
			}
		}

		public static String ItemKeyUrl
		{
			get
			{
				return "http://bikebouncer.com/s/";
			}
		}

		#endregion

		#region Load

		public static void Load()
		{
			DataPath = ConfigUtil.GetConfig("BikeBouncer.DataPath", String.Empty);
		}

		#endregion
	}
}